package com.fis.hlo.pm.persistence;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>
 * Java class for tmpIrAdjParam complex type.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name="tmpIrAdjParam">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="createUser" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="currency" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="items" type="{http://tmpiradj.pm.hlo.fis.com/}tmpIrAdj" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="localIP" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tmpIrAdjParam", propOrder = { "createUser", "currency",
		"items", "localIP", "message" })
public class TmpIrAdjParam {

	protected String createUser;
	protected String currency;
	@XmlElement(nillable = true)
	protected List<TmpIrAdj> items;
	protected String localIP;
	protected String message;

	/**
	 * Gets the value of the createUser property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getCreateUser() {
		return createUser;
	}

	/**
	 * Sets the value of the createUser property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setCreateUser(String value) {
		this.createUser = value;
	}

	/**
	 * Gets the value of the currency property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getCurrency() {
		return currency;
	}

	/**
	 * Sets the value of the currency property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setCurrency(String value) {
		this.currency = value;
	}

	/**
	 * Gets the value of the items property.
	 * 
	 * <p>
	 * This accessor method returns a reference to the live list, not a
	 * snapshot. Therefore any modification you make to the returned list will
	 * be present inside the JAXB object. This is why there is not a
	 * <CODE>set</CODE> method for the items property.
	 * 
	 * <p>
	 * For example, to add a new item, do as follows:
	 * 
	 * <pre>
	 * getItems().add(newItem);
	 * </pre>
	 * 
	 * 
	 * <p>
	 * Objects of the following type(s) are allowed in the list {@link TmpIrAdj }
	 * 
	 * 
	 */
	public List<TmpIrAdj> getItems() {
		if (items == null) {
			items = new ArrayList<TmpIrAdj>();
		}
		return this.items;
	}

	public void setItems(List<TmpIrAdj> items) {
		this.items = items;
	}

	public void fromItemArrayList(ArrayList<CustomTmpIrAdj> items) {
		List<TmpIrAdj> tmpList = new ArrayList<TmpIrAdj>();

		for (CustomTmpIrAdj i : items)
			tmpList.add(i);

		this.setItems(tmpList);
	}

	/**
	 * Gets the value of the localIP property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getLocalIP() {
		return localIP;
	}

	/**
	 * Sets the value of the localIP property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setLocalIP(String value) {
		this.localIP = value;
	}

	/**
	 * Gets the value of the message property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * Sets the value of the message property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setMessage(String value) {
		this.message = value;
	}

}
